package com.myschool.server.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "skill")
public class Skill extends BaseEntity {
	@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
	private User skillUser;

	/**
	 * @return the skillUser
	 */
	public User getSkillUser() {
		return skillUser;
	}

	/**
	 * @param skillUser
	 *            the skillUser to set
	 */
	public void setSkillUser(User skillUser) {
		this.skillUser = skillUser;
	}

}
